﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Drawing;

namespace TapiocaWpf.Utilities
{
    public class UserSettings : ApplicationSettingsBase
    {
        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public string UserName
        {
            get
            {
                return ((string)this["UserName"]);
            }
            set
            {
                this["UserName"] = value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public string Password
        {
            get
            {
                return ((string)this["Password"]);
            }
            set
            {
                this["Password"] = value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public string Domain
        {
            get
            {
                return ((string)this["Domain"]);
            }
            set
            {
                this["Domain"] = value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public string Server
        {
            get
            {
                return ((string)this["Server"]);
            }
            set
            {
                this["Server"] = value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public string Port
        {
            get
            {
                return ((string)this["Port"]);
            }
            set
            {
                this["Port"] = value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public List<string> RecentlyOpenedFiles
        {
            get
            {
                return ((List<string>)this["RecentlyOpenedFiles"]);
            }
            set
            {
                this["RecentlyOpenedFiles"] = value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public string LayoutEngine
        {
            get
            {
                return ((string)this["LayoutEngine"]);
            }
            set
            {
                this["LayoutEngine"] = value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public string FileType
        {
            get
            {
                return ((string)this["FileType"]);
            }
            set
            {
                this["FileType"] = value;
            }
        }
    }
}
